package com.jimline.phonebook.datacontroller;

public class ContactItem
{
	private String m_name = new String();
	private String m_phone = new String();
	private String m_email = new String();
	private String m_fax = new String();
	private String m_address = new String();
	private String m_company = new String();
	
	public ContactItem(String name, String phoneNumber)
	{
		m_name = name;
		m_phone = phoneNumber;
	}
	
	public void setName(String name)
	{
		if (!name.isEmpty()) {
		    m_name = name;
		}
	}
	
	public String getName()
	{
		return m_name;
	}
	
	public void setPhoneNumber(String phoneNumber)
	{
		if (!phoneNumber.isEmpty()) {
			m_phone = phoneNumber;
		}
	}
	
	public String getPhoneNumber()
	{
		return m_phone;
	}
	
	public void setEmail(String email)
	{
		m_email = email;
	}
	
	public String getEmail()
	{
		return m_email;
	}
	
	public void setFax(String fax)
	{
		m_fax = fax;
	}
	
	public String getFax()
	{
		return m_fax;
	}
	
	public void setAddress(String address)
	{
		m_address = address;
	}
	
	public String getAddress()
	{
		return m_address;
	}
	
	public void setCompany(String company)
	{
		m_company = company;
	}
	
	public String getCompany()
	{
		return m_company;
	}
}